/**
 * 定义一个整数数组，输出比平均值大的数
 */

public class ShuZuzuoye11 {
    public static void main(String[] args) {
        int []a={2,5,4,9,10,14};
        int avg=0;
        int sum=0;
        int i=0;
        for (;i<a.length;i++){
            sum+=a[i];
        }
        avg=sum/a.length;
        for (int j=0;j<a.length;j++){
            if (a[j]>avg){
                System.out.print(a[j]+" ");
            }
        }


    }
}
